<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        console.log(location);
    </script>
    <!-- <a href="#/user">用户</a>
    <a href="#/friend">好友</a>
    <a href="#/song">歌曲</a>
    <button>刷新</button>
    <script>
        const btn = document.querySelector('button')
        btn.addEventListener('click', function () {
            // 相当于 F5刷新
            location.reload()
            // 相当于 ctrl+F5强制刷新
            location.reload(true)
        })
    </script> -->

    <!-- search属性 -->
    <!-- < !-- < form action = "" > -->
    <!-- 文本：<input type="text" name="text">
    密码：<input type="password" name="pwd">
    <button type="submit">提交</button> -->
    <!-- JS_practice/location%E5%AF%B9%E8%B1%A1.html?text=pink&pwd=123456 -->

    <!-- href属性 -->
    <!-- <a href="https://www.bilibili.com">5秒后跳转</a>
                    <script>
                        const a = document.querySelector('a')
                        let num = 5
                        let timerID = setInterval(function () {
                            num--
            a.innerHTML = `${num}秒后跳转`
                        if (num === 0) {
                            clearInterval(timerID)
                // 跳转页面
                location.href = "https://www.bilibili.com"
            }
        }, 1000); -->

    <!-- </script> -->
</body>

</html>